<?php
// digiboard by digitalboom.org
// Information Technology program
// Sirindhorn International Institute of Technology
// Thammasat University, Rangsit Center
// http://www.digitalboom.org
//
// authors xx, bact', sea
// first created on: 2001 Jun xx
// last modified on: 2008 May 14 sea

// ****
// some settings have been moved to accounts.inc.php and forum.inc.php
// ****

// ====================================================
// APPEARANCES

// webpage character encoding
$DGB["ENCODING"] = "TIS-620";
 
 // default language -- TH for Thai, EN for English
$DGB["LANGUAGE"] = "TH";  

// names
$DGB["WEBBOARD_NAME"]      = "SIIT.NET webboard";
$DGB["WEBBOARD_SHORTNAME"] = "SIIT";
$DGB["WEBBOARD_DESCRIPTION"] = "Community of SIIT people and friends";

// stylesheet
$DGB["STYLESHEET"] = "css/main.css";


// =====================================================
// DATE &amp;amp;amp;amp;amp;amp; TIME

// server time-local time offset
$DGB["TIME_OFFSET"]            = (-15) + date("I"); //Automatically offset for Daylight Saving. mameou.

// abbreviated date &amp;amp;amp;amp;amp;amp; time format
$DGB["SHORT_DATE_FORMAT"]      = "j M y";
$DGB["SHORT_TIME_FORMAT"]      = "H:i";
$DGB["SHORT_DATETIME_FORMAT"]  = $DGB["SHORT_DATE_FORMAT"]." ".$DGB["SHORT_TIME_FORMAT"];

// medium date &amp;amp;amp;amp;amp;amp; time format
$DGB["MEDIUM_DATE_FORMAT"]     = "D, j M Y";
$DGB["MEDIUM_TIME_FORMAT"]     = "H:i:s";
$DGB["MEDIUM_DATETIME_FORMAT"] = $DGB["MEDIUM_DATE_FORMAT"]." ".$DGB["MEDIUM_TIME_FORMAT"];

// full date &amp;amp;amp;amp;amp;amp; time format
$DGB["LONG_DATE_FORMAT"]       = "l, F j, Y";
$DGB["LONG_TIME_FORMAT"]       = "H:i:s";
$DGB["LONG_DATETIME_FORMAT"]   = $DGB["LONG_DATE_FORMAT"]." ".$DGB["LONG_TIME_FORMAT"];


// =====================================================
// DEFAULT VALUES

$DGB["DEFAULT_SORT"]  = "PostTime";
$DGB["DEFAULT_TOPICS_PER_PAGE"] = 50;
$DGB["MAX_TOPICS_PER_PAGE"] = 250; // decrease this, if got slow response

$DGB["DEFAULT_FORUM"] = 0;    // default forum for list
$DGB["FORUM_DEFAULT_POST"] = 2;  // default forum for post

// Rules for topic status (Hot,New,Update)
$DGB_FORUM["HOT_NUMBER"]      = 250;  // number of reads
$DGB_FORUM["NEW_TIMEDIFF"]    = 86400; // seconds
$DGB_FORUM["UPDATE_TIMEDIFF"] = 86400; // seconds


// =====================================================
// ADDITIONAL FEATURES

$DGB["BOARD_STATS"] = true; // Enable board statistics -- true = yes, false = no
$DGB["ENABLE_UPLOAD"] = true; // Enable upload  -- true = yes, false = no
$DGB["ENABLE_WORDSCREENING"] = false; // not implemented yet // Enable word screening -- true = yes, false no
$DGB["ENABLE_IPBAN"] = false; // not implemented yet // Enable ban by IP -- true = yes, false no
$DGB["ENABLE_LOGIN"] = true; // Enable login system  -- true = yes, false = no
$DGB["ENABLE_FORCEANNOUNCEMENT"] = false; // Enable annoucement forum on every page ? -- true = yes, false = no
$DGB["ENABLE_ADDITIONALFORUMBAR"] = true; // below header -- true = yes, false = no

// login system settings
// (only if ENABLE_LOGIN = true)
$DGB["SendMailSystem"]    = true; // can your server use mail() function? (if false skip below)
$DGB["EmailConfirmation"] = false; // send registration confirmation e-mail to user?

$DGB["UploadMaxNum"]  = 3;     // how many files can be uploaded in one time
$DGB["UploadMaxSize"] = 1024000; // max size allowed for each file uploaded
$DGB["UploadTypeAllowed"] = array("image/png","image/gif","image/pjpeg","image/jpeg","application/ms-excel","application/ms-powerpoint","application/ms-word");

// =====================================================
// OTHER SETTINGS

$DGB["DISPLAY_SQL_ERRMSG"] = true; // display error message from SQL server ?
$DGB["POSTERNAME_LENGTH_LIMIT"] = 10; // (only effects for topic list page)
$DGB["TITLE_LENGTH_LIMIT"] = 80; // (only effects for topic list page)
$DGB["REFRESH_TIME"] = 108000; // refresh topic list page every ? seconds

// Paths
$DGB["HTTP_PATH"]   = "http://$_SERVER[HTTP_HOST]/webboard";
$DGB["UPLOAD_PATH"] = "uploaded";


// ------------------------
// digiboard internal use
// PLEASE DO NOT MODIFY
$DGB["NAME"]    = "digiboard";
$DGB["VERSION"] = "0.42";
$DGB["ORIGIN"] = "Sirindhorn International Institute of Technology, Thammasat University, Thailand";

?>
